package com.itheima.web.manager;

import com.itheima.domain.vo.AnalysisSummaryVo;
import com.itheimma.service.db.AnalysisByDayService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
public class AnalysisControllerManager {

    @DubboReference
    private AnalysisByDayService analysisByDayService;

    public ResponseEntity findAnalysisSummaryVo() {
        AnalysisSummaryVo vo = analysisByDayService.findAnalysisSummaryVo();

        return ResponseEntity.ok(vo);
    }
}
